#include "musiclist.h"
#include "ui_musiclist.h"
#include<QDebug>
musiclist::musiclist(QWidget *parent) :
    QWidget(parent),
    ui(new Ui::musiclist)
{
    ui->setupUi(this);
    ui->title->setFixedHeight(height()/9);
}

musiclist::~musiclist()
{
    delete ui;
}

void musiclist::set(QString picture, QString title)
{
    m_picture=picture;
    m_title=title;

    ui->musicpicture->setPixmap(QPixmap(m_picture));
    ui->title->setText(m_title);
}

void musiclist::mouseDoubleClickEvent(QMouseEvent *event)
{
    emit mouseDoubleClick();
}
